package com.ssd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ssd.entity.ChannelEntity;
import com.ssd.entity.dto.ChannelConfigDto;

import java.util.List;
import java.util.Map;

public interface ChannelService extends IService<ChannelEntity> {
     Page<Map<String, Object>> getChannelList(Integer currentPage, Integer pageSize,String innerCode);

     /**
      * 修改售货机货道
      */
     int updateChannel(ChannelConfigDto channelConfigDto);

     int batchInsertChannels(List<ChannelEntity> channelList);

     /**
      * 获取指定机器的货道信息
      * @param innerCode
      * @return
      */
     List<ChannelEntity> getChannelList(String innerCode);
}
